﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x02000165 RID: 357
	public class TMssqlClose : TCustomSqlStatement
	{
		// Token: 0x06000C33 RID: 3123 RVA: 0x0030707E File Offset: 0x0030527E
		public TMssqlClose(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqlclose;
		}

		// Token: 0x06000C34 RID: 3124 RVA: 0x00307092 File Offset: 0x00305292
		internal override void buildsql()
		{
		}

		// Token: 0x06000C35 RID: 3125 RVA: 0x00307094 File Offset: 0x00305294
		internal override void clear()
		{
		}

		// Token: 0x06000C36 RID: 3126 RVA: 0x00307096 File Offset: 0x00305296
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000C37 RID: 3127 RVA: 0x0030709D File Offset: 0x0030529D
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x06000C38 RID: 3128 RVA: 0x003070A0 File Offset: 0x003052A0
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TCloseSqlNode tcloseSqlNode = (TCloseSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.cursorName = tcloseSqlNode.CursorName;
			return 0;
		}

		// Token: 0x06000C39 RID: 3129 RVA: 0x003070D8 File Offset: 0x003052D8
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000C3A RID: 3130 RVA: 0x003070E8 File Offset: 0x003052E8
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x17000239 RID: 569
		// (get) Token: 0x06000C3B RID: 3131 RVA: 0x003070F8 File Offset: 0x003052F8
		// (set) Token: 0x06000C3C RID: 3132 RVA: 0x00307100 File Offset: 0x00305300
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x040012D4 RID: 4820
		private TObjectName cursorName;
	}
}
